import argparse
from common.file import read_yaml_file
parser = argparse.ArgumentParser(description='Start the server.')
parser.add_argument('--cfg', type=str, help='The configure file path.')
args = parser.parse_args()
if args.cfg:
    cfg = read_yaml_file(args.cfg)
else:
    cfg = read_yaml_file('configs\\config.yaml')